class CreateUsers < ActiveRecord::Migration
  def self.up
    create_table :users do |t|
    t.column  :name,          :string
    t.column  :hashed_password, :string
    t.column  :salt,            :string     
    t.column  :question,          :string, :limit => 255, :default => "", :null => false   
    t.column  :question_answer,     :string, :limit => 255, :default => "", :null => false  
    t.column  :profile,          :string, :limit => 255, :default => "", :null => false       
    t.column  :email_addr,       :string, :limit => 100, :default => "", :null => false 
          t.column :enabled, :boolean, :default => true, :null => false
    end
    add_index :users, :name
  end

  def self.down
    drop_table :users
  end
end
